package imnu.abstracts.oop4;

/**
 * @author: lys
 * @类名: Soldier
 * @Title:
 * @date: 2020/7/15
 **/
public class Soldier {
    //属性
    Gun gun;
    //战斗方法
    public void fight(Gun gun){
        this.gun = gun;
        System.out.println("士兵使用"+gun.gunName()+"战斗");
    }


}
